ok, so one thing that I don't fully understand: Ob...
# javascript
b
ok, so one thing that I don't fully understand: Object.entries() works on T: Any, that means in return that you can't use it on RecordString, Any?, correct? when I change the type predicate to work on T: Any? it works on both Any and Any? signature in question: https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-js/src/jsMain/kotlin/js/objects/Object.kt#L20 my usecase:
Copy code
fun <T : Any?> Record<String, T>.asSequence(): Sequence<JsTuple2<String, T>> =
    Object.entries(this).asSequence()

fun <T : Any?> Sequence<JsTuple2<String, T>>.toRecord(): Record<String, T> =
    Object.fromEntries(toTypedArray())
https://github.com/JetBrains/kotlin-wrappers/pull/2333
โœ… 1
t
You have invalid receiver for
asSequence
extension as I see
It must be
ReadonlyRecord
b
thank you!
so it's a variance issue?
t
Receiver - separate problem
You can have object with
null
property value
Object.entries
signature must be fixed
b
ok, pushed
๐Ÿ‘ 1
thank you for your continued patience and help ๐Ÿ™‚
๐Ÿ˜œ 1
t
Released in
pre.783
๐Ÿ˜€
๐Ÿ™Œ 1
b
does maven auto build it? I see the tag is pushed, but it's not yet available on maven central
t
maven central isn't very fast ๐Ÿ˜ž
pre.783
already available on MC